package commonDataStructures;

/**
 * @author avishl02
 * an interface of pretty primitive collection 
 * @param <E>
 */
public interface PrimitiveCollection<E> {
	void init();
	/**
	 * remove an element from the top of the collection
	 * @return an element
	 */
	E remove();
	
	
	/**
	 * insert an element to the collection
	 * @param e the element to insert
	 */
	void insert(E e);
	
	
	/**
	 * checks if the collection is empty
	 * @return true iff the collecion is empty
	 */
	boolean isEmpty();
	
	/**
	 * @return the size of the collection
	 */
	int size();
}
